import request from '@/utils/request'
import type { userInfoData, LoginData, LoginFrom, ApiResponse } from '@/api/user/type'

export const reqLogin = (data: LoginFrom) => {
  return request.post<any, LoginData>('/admin/acl/index/login', data)
}

export const reqUserInfo = () => {
  return request.get<any, userInfoData>('/admin/acl/index/info')
}

export const reqLogout = () => {
  return request.post<any, ApiResponse>('/admin/acl/index/logout')
}
